<!--- 
To Do

Student temporarily points to followUp
Block url modification, make sure requested student belongs to organization/RA
 --->
<cfparam name="Student_ID" type="integer" default="0" />
<cfparam name="returnView" type="string" default="students" />
<cfparam name="passback" type="string" default="" />

<cfscript>
	studentGateway = new assets.calgrants.com.gateway.StudentGateway();
	student = studentGateway.get(Student_ID = Student_ID);
</cfscript>
	
<cfif IsNumeric(student.getStudent_ID())>
	
	<cfscript>
		base = new assets.calgrants.com.Base();
		passbackQueryString = base.passbackToQueryString(passback);
		evaluationGateway = new assets.calgrants.com.gateway.EvaluationGateway();
		qEvaluation = evaluationGateway.query(Student_ID = student.getStudent_ID());
		evaluation = evaluationGateway.get(Evaluation_ID = qEvaluation.Evaluation_ID);
	</cfscript>
	
	<script type="text/javascript" language="javascript">
	<!--
		<cfoutput>
			var studentID = #student.getStudent_ID()#;
		</cfoutput>
		
		toggleFollowUpOther = function() {
			if ($("#followUpOther").is(":checked")) {
				$("#followUpOtherContainer").show();
			} else {
				$("#followUpOtherContainer").hide();
				$("#Follow_Up_Other").val("");
			}
		};	

		var validate = function() {
			var errors = "";
			var valid = true;
			if (!valid) {
				alert(errors);
			}
			return valid;				
		}
		
		$(function() {
			$("#studentModal").modal();
			resizeModal("studentModal");
			if ($("#followUpOther").is(":checked")) {
				$("#followUpOtherContainer").show();
			}
		})
	//-->
	</script>
	
	<cfoutput>
	
		<cfform name="followUpRequestForm" id="followUpRequestForm" action="#script_name#" method="post" onsubmit="return validate();">
			<cfinput type="hidden" name="action" value="saveStudent" />
			<cfinput type="hidden" name="view" value="#returnView#" />
			<cfinput type="hidden" name="Student_ID" value="#student.getStudent_ID()#" />
			<cfif IsDefined("passback")>
				<cfloop index="keyValue" list="#passback#" delimiters=";">
					<cfinput type="hidden" name="#ListFirst(keyValue)#" value="#ListLast(keyValue)#" />
				</cfloop>
			</cfif>
			<div id="studentModal" class="modal modal-fullscreen" data-backdrop="static">
				<div class="modal-header">
					<h3>Student</h3>
				</div>
				<div class="modal-body">
					<div class="container-fluid">
						<div class="row-fluid">
							<div class="span4">
								<div class="text-control clearfix">
									<label>Student</label>
									#student.getFirst_Name()# #student.getLast_Name()#<br />
									#student.getAddress()#<br />
									#student.getCity()#, CA #student.getZip_Code()#<br />
									#student.getPhone1()#<br />
									<cfif Len(Trim(student.getPhone2())) gt 0>#student.getPhone2()#<br /></cfif>
									<a href="mailto:#student.getEmail()#">#student.getEmail()#</a>
								</div>
								<div class="text-control clearfix">
									<label>Date of Birth</label>
									#DateFormat(student.getDOB(), "m/d/yyyy")#
								</div>
								<div class="text-control clearfix">
									<label>Social Security Number</label>
									<cfif student.getSSN_Code() eq 1>
										***-**-#student.getSSN()#
									<cfelseif student.getSSN_Code() eq 2>
										I do not have an SSN
									<cfelseif student.getSSN_Code() eq 3>
										I don't remember my SSN
									</cfif>
								</div>
								<cfif evaluation.getQ15() eq "2" or evaluation.getQ15() eq "3">
									<div class="clearfix">
										<label class="required">Follow Up Status</label>
										<cfselect name="Follow_Up_Status" required="yes" message="Status is required" class="span9">
											<option value="Not Complete"<cfif student.getFollow_Up_Status() eq "Not Complete" OR ((evaluation.getQ17() eq 1 OR evaluation.getQ17() eq 2) AND Len(Trim(student.getFollow_Up_Status())) eq 0)> selected</cfif>>Not Complete</option>
											<option value="Complete"<cfif student.getFollow_Up_Status() eq "Complete"> selected</cfif>>Complete</option>
										</cfselect>
									</div>
									<div class="clearfix">
										<label>Follow Up Topics</label>
										<div class="well clearfix span9" style="line-height: 24px; margin: 0; margin-bottom: 10px;">
											<label class="checkbox">
												<input type="checkbox" name="Follow_Up_FAFSA" value="1" <cfif student.getFollow_Up_FAFSA() eq 1> checked</cfif>> 
												FAFSA
											</label>
											<label class="checkbox">
												<input type="checkbox" name="Follow_Up_CA_Dream_Act" value="1" <cfif student.getFollow_Up_CA_Dream_Act() eq 1> checked</cfif>> 
												CA Dream Act
											</label>
											<label class="checkbox">
												<input type="checkbox" name="Follow_Up_Taxes" value="1" <cfif student.getFollow_Up_Taxes() eq 1> checked</cfif>> 
												Taxes
											</label>
											<label class="checkbox">
												<input type="checkbox" name="Follow_Up_Income_Assets" value="1" <cfif student.getFollow_Up_Income_Assets() eq 1> checked</cfif>> 
												Income and/or assets
											</label>
											<label class="checkbox">
												<input type="checkbox" name="Follow_Up_Cal_Grant_Deadline" value="1" <cfif student.getFollow_Up_Cal_Grant_Deadline() eq 1> checked</cfif>> 
												Cal Grants deadline
											</label>
											<label class="checkbox">
												<input type="checkbox" name="Follow_Up_Cal_Grant_Requirements" value="1" <cfif student.getFollow_Up_Cal_Grant_Requirements() eq 1> checked</cfif>> 
												Cal Grant requirements including GPA
											</label>
											<label class="checkbox">
												<input type="checkbox" id="followUpOther" onClick="toggleFollowUpOther();"<cfif Len(Trim(student.getFollow_Up_Other())) gt 0> checked</cfif>> 
												Other
											</label>
											<div id="followUpOtherContainer" style="display: none;">
												<cfinput type="text" name="Follow_Up_Other" value="#student.getFollow_Up_Other()#" placeholder="Enter other topic(s)" class="span9" />
											</div>
										</div>							
									</div>
									<div class="clearfix">
										<label>Follow Up Notes</label>
										<textarea name="Follow_Up_Notes" class="span9" rows="6">#student.getFollow_Up_Notes()#</textarea>
									</div>
								</cfif>
							</div>
							<div class="span8">
								<div class="q">
								<a name="q1"></a>
								<h5>1. How would you rate this workshop overall?</h5>
								<blockquote>
									<cfif evaluation.getQ1() eq 1>
										Excellent
									<cfelseif evaluation.getQ1() eq 2>
										Good
									<cfelseif evaluation.getQ1() eq 3>
										Fair
									<cfelseif evaluation.getQ1() eq 4>
										Poor
									<cfelse>
										<span class="muted">Did not answer</span>
									</cfif>
								</blockquote>
							</div>
							<div class="q">
								<a name="q2"></a>
								<h5>2. Before you heard about this workshop, did you know how to apply for financial aid?</h5>
								<blockquote>
									<cfif evaluation.getQ2() eq 1>
										Yes
									<cfelseif evaluation.getQ2() eq 2>
										No
									<cfelseif evaluation.getQ2() eq 3>
										A little, but not all I needed to know
									<cfelse>
										<span class="muted">Did not answer</span>
									</cfif>
								</blockquote>
							</div>
							<div class="q">
								<a name="q3"></a>
								<h5>3. Could you have completed the FAFSA on your own, without the help provided by a Cash for College workshop?</h5>
								<blockquote>
									<cfif evaluation.getQ3() eq 1>
										Yes
									<cfelseif evaluation.getQ3() eq 2>
										No
									<cfelseif evaluation.getQ3() eq 3>
										Probably, but not as well
									<cfelse>
										<span class="muted">Did not answer</span>
									</cfif>
								</blockquote>
							</div>
							<div class="q">
								<a name="q4"></a>
								<h5>4. Was the help you received worth the effort of attending?</h5>
								<blockquote>
									<cfif evaluation.getQ4() eq 1>
										Yes
									<cfelseif evaluation.getQ4() eq 2>
										No
									<cfelseif evaluation.getQ4() eq 3>
										Not sure
									<cfelse>
										<span class="muted">Did not answer</span>
									</cfif>
								</blockquote>
							</div>
							<div class="q">
								<a name="q5"></a>
								<h5>5. Will you be the first member of your family to attend college?</h5>
								<blockquote>
									<cfif evaluation.getQ5() eq 1>
										Yes
									<cfelseif evaluation.getQ5() eq 2>
										No
									<cfelse>
										<span class="muted">Did not answer</span>
									</cfif>
								</blockquote>
							</div>
							<div class="q">
								<a name="q6"></a>
								<h5>6. Highest level of education your parent's completed</h5>
								<blockquote>
									<cfif evaluation.getQ6() eq 1>
										Did not complete high school
									<cfelseif evaluation.getQ6() eq 2>
										High School or GED
									<cfelseif evaluation.getQ6() eq 3>
										Some college but no degree
									<cfelseif evaluation.getQ6() eq 4>
										Vocational certificate
									<cfelseif evaluation.getQ6() eq 5>
										2-year (associates) degree
									<cfelseif evaluation.getQ6() eq 6>
										4-year bachelor's degree or higher
									<cfelse>
										<span class="muted">Did not answer</span>
									</cfif>
								</blockquote>
							</div>
							<div class="q">
								<a name="q7"></a>
								<h5>7. Are you a high school senior?</h5>
								<blockquote>
									<cfif evaluation.getQ7() eq 1>
										Yes
									<cfelseif evaluation.getQ7() eq 2>
										No
									<cfelseif evaluation.getQ7() eq 3>
										Family member of senior
									<cfelse>
										<span class="muted">Did not answer</span>
									</cfif>
								</blockquote>
							</div>
							<div class="q">
								<a name="q8"></a>
								<h5>8. What high school do you attend (name of school and city)?</h5>
								<blockquote>
									#evaluation.getQ8()#
								</blockquote>
							</div>
							<div class="q">
								<a name="q9"></a>
								<h5>9. Are you member of a social networking site?  (Mark all that apply)</h5>
								<blockquote>
									
									<!--- this should be modified to be backwards compatible with removed values from previous years --->
									
									<cfif ListFind(evaluation.getQ9(), "1") gt 0>
										Facebook<br />
									</cfif>
									<cfif ListFind(evaluation.getQ9(), "5") gt 0>
										Twitter<br />
									</cfif>
									<cfif ListFind(evaluation.getQ9(), "3") gt 0>
										Other: #evaluation.getQ9_Other()#
									</cfif>
									<cfif Len(Trim(evaluation.getQ9())) eq 0>
										<span class="muted">Did not answer</span>
									</cfif>
								</blockquote>
							</div>
							<div class="q">
								<a name="q10"></a>
								<h5>10. Did you attend with your parent or guardian today?</h5>
								<blockquote>
									<cfif evaluation.getQ10() eq 1>
										Yes
									<cfelseif evaluation.getQ10() eq 2>
										No
									<cfelse>
										<span class="muted">Did not answer</span>
									</cfif>
								</blockquote>
							</div>
							<div class="q">
								<a name="q11"></a>
								<h5>11. What is your gender?</h5>
								<blockquote>
									<cfif evaluation.getQ11() eq 1>
										Male
									<cfelseif evaluation.getQ11() eq 2>
										Female
									<cfelseif evaluation.getQ11() eq 3>
										Decline to Answer
									<cfelse>
										<span class="muted">Did not answer</span>
									</cfif>
								</blockquote>
							</div>
							<div class="q">
								<a name="q12"></a>
								<h5>12. What is your race/ethnicity? (Mark all that apply)</h5>
								<blockquote>
									<cfif ListFind(evaluation.getQ12(), "1") gt 0>
										American Indian or Alaskan Native<br />
									</cfif>
									<cfif ListFind(evaluation.getQ12(), "2") gt 0>
										Asian<br />
									</cfif>
									<cfif ListFind(evaluation.getQ12(), "3") gt 0>
										Black/African American<br />
									</cfif>
									<cfif ListFind(evaluation.getQ12(), "4") gt 0>
										Hispanic/Latino<br />
									</cfif>
									<cfif ListFind(evaluation.getQ12(), "5") gt 0>
										Native Hawaiian or other Pacific Islander<br />
									</cfif>
									<cfif ListFind(evaluation.getQ12(), "6") gt 0>
										White<br />
									</cfif>
									<cfif ListFind(evaluation.getQ12(), "7") gt 0>
										Other: #evaluation.getQ12_Other()#
									</cfif>
									<cfif Len(Trim(evaluation.getQ12())) eq 0>
										<span class="muted">Did not answer</span>
									</cfif>
								</blockquote>
							</div>
							<div class="q">
								<a name="q13"></a>
								<h5>13. Do you usually speak a language other than English at home?</h5>
								<blockquote>
									<cfif evaluation.getQ13() eq 1>
										Yes - #evaluation.getQ13_Other()#
									<cfelseif evaluation.getQ13() eq 2>
										No
									<cfelse>
										<span class="muted">Did not answer</span>
									</cfif>
								</blockquote>
							</div>
							<div class="q">
								<a name="q14"></a>
								<h5>14. How did you hear about this Cash for College workshop? (Mark all that apply)</h5>
								<blockquote>
									<cfif ListFind(evaluation.getQ14(), "1") gt 0>
										School flyer/poster<br />
									</cfif>
									<cfif ListFind(evaluation.getQ14(), "2") gt 0>
										School counselor<br />
									</cfif>
									<cfif ListFind(evaluation.getQ14(), "3") gt 0>
										Teachers/school staff<br />
									</cfif>
									<cfif ListFind(evaluation.getQ14(), "4") gt 0>
										Radio<br />
									</cfif>
									<cfif ListFind(evaluation.getQ14(), "5") gt 0>
										Newspaper<br />
									</cfif>
									<cfif ListFind(evaluation.getQ14(), "6") gt 0>
										Website/e-mail<br />
									</cfif>
									<cfif ListFind(evaluation.getQ14(), "7") gt 0>
										Mailing<br />
									</cfif>
									<cfif ListFind(evaluation.getQ14(), "8") gt 0>
										Phone call<br />
									</cfif>
									<cfif ListFind(evaluation.getQ14(), "9") gt 0>
										Friend/classmate<br />
									</cfif>
									<cfif ListFind(evaluation.getQ14(), "10") gt 0>
										Family<br />
									</cfif>
									<cfif ListFind(evaluation.getQ14(), "11") gt 0>
										Community organization<br />
									</cfif>
									<cfif ListFind(evaluation.getQ14(), "12") gt 0>
										Church<br />
									</cfif>
									<cfif ListFind(evaluation.getQ14(), "13") gt 0>
										Cal-SOAP event/staff<br />
									</cfif>
									<cfif ListFind(evaluation.getQ14(), "15") gt 0>
										Facebook or Twitter<br />
									</cfif>
									<cfif ListFind(evaluation.getQ14(), "14") gt 0>
										Other: #evaluation.getQ14_Other()#
									</cfif>
									<cfif Len(Trim(evaluation.getQ14())) eq 0>
										<span class="muted">Did not answer</span>
									</cfif>
								</blockquote>
							</div>
							<div class="q">
								<a name="q15"></a>
								<h5>15. Did you finish your FAFSA and/or CA Dream Act application today?</h5>
								<blockquote>
									<cfif evaluation.getQ15() eq 1>
										Yes
									<cfelseif evaluation.getQ15() eq 2>
										Some, not all
									<cfelseif evaluation.getQ15() eq 3>
										No
									<cfelse>
										<span class="muted">Did not answer</span>
									</cfif>
								</blockquote>
							</div>
							<div id="q16" class="q" style="color: silver;">
								<a name="q16"></a>
								<h5>16. If you didn't finish your FAFSA and/or CA Dream Act application today, please tell us why: (Mark all that apply)</h5>
								<blockquote>
									<cfif ListFind(evaluation.getQ16(), "1") gt 0>
										Thought I had to have taxes completed<br />
									</cfif>
									<cfif ListFind(evaluation.getQ16(), "2") gt 0>
										Didn't bring enough financial info with me<br />
									</cfif>
									<cfif ListFind(evaluation.getQ16(), "3") gt 0>
										Technical problem with computer<br />
									</cfif>
									<cfif ListFind(evaluation.getQ16(), "4") gt 0>
										Will submit later on the Internet<br />
									</cfif>
									<cfif ListFind(evaluation.getQ16(), "5") gt 0>
										Asked for AB 540 help<br />
									</cfif>
									<cfif ListFind(evaluation.getQ16(), "6") gt 0>
										Other: #evaluation.getQ16_Other()#
									</cfif>
									<cfif Len(Trim(evaluation.getQ16())) eq 0>
										<span class="muted">Did not answer</span>
									</cfif>
								</blockquote>
							</div>
							<div id="q17" class="q" style="color: silver;">
								<a name="q17"></a>
								<h5>17. Would you like more help to complete the FAFSA and/or CA Dream Act application?</h5>
								<blockquote>
									<cfif evaluation.getQ17() eq 1>
										Yes
									<cfelseif evaluation.getQ17() eq 2>
										Maybe
									<cfelseif evaluation.getQ17() eq 3>
										No
									<cfelse>
										<span class="muted">Did not answer</span>
									</cfif>
								</blockquote>
							</div>
							<div class="q">
								<a name="q18"></a>
								<h5>18. How could this workshop be improved? (Mark all that apply)</h5>
								<blockquote>
									<cfif ListFind(evaluation.getQ18(), "1") gt 0>
										No improvement needed<br />
									</cfif>
									<cfif ListFind(evaluation.getQ18(), "2") gt 0>
										More one-to-one help<br />
									</cfif>
									<cfif ListFind(evaluation.getQ18(), "3") gt 0>
										More translators<br />
									</cfif>
									<cfif ListFind(evaluation.getQ18(), "4") gt 0>
										Explain in more detail<br />
									</cfif>
									<cfif ListFind(evaluation.getQ18(), "5") gt 0>
										Session too long<br />
									</cfif>
									<cfif ListFind(evaluation.getQ18(), "6") gt 0>
										Other: #evaluation.getQ18_Other()#
									</cfif>
									<cfif Len(Trim(evaluation.getQ18())) eq 0>
										<span class="muted">Did not answer</span>
									</cfif>
								</blockquote>
							</div>
							<div class="q">
								<a name="q19"></a>
								<h5>19. Did the extra $1,000 scholarship motivate you to attend today?</h5>
								<blockquote>
									<cfif evaluation.getQ19() eq 1>
										Yes, definitely motivated me
									<cfelseif evaluation.getQ19() eq 2>
										Motivated me a little
									<cfelseif evaluation.getQ19() eq 3>
										Was going to attend; didn't motivate me to attend
									<cfelseif evaluation.getQ19() eq 4>
										Didn't know about it
									<cfelse>
										<span class="muted">Did not answer</span>
									</cfif>
								</blockquote>
							</div>
							</div>
						</div>
					</div>
				</div>
				<div class="modal-footer">
					<a href="?view=#returnView#&#passbackQueryString#" class="btn btn-success">Cancel</a>
					<cfif evaluation.getQ15() eq "2" or evaluation.getQ15() eq "3">
						<cfinput type="submit" name="saveButton" class="btn btn-success" value="Save" />
					</cfif>
				</div>
			</div>
	
		</cfform>
	
	</cfoutput>

<cfelse>

	<div class="alert alert-info notFound">Follow up request not found or insufficient permissions to perform this operation</div>

</cfif>